package operator;

/**
 * @author yuisama
 * @date 2022/08/17 10:18
 * 逻辑运算符
 **/
public class LogicOperation {
    public static void main(String[] args) {
        int a = 10;
        int b = 20;
//        System.out.println(a == 10 && b == 20); // 所有参与运算的表达式都必须为布尔表达式 true
//        System.out.println(b > 20 && a == 10); // false
//        System.out.println(a == 10 || b > 20); // true
//        System.out.println(a < 10 || b > 20); // false
        System.out.println(b <= 20 || 10 / 0 == 0);
        System.out.println(!(a == 10));
    }
}